package com.ruoyi.business.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购入库单对象 jt_purchase_inbound_order
 * 
 * @author Alan Zhang
 * @date 2025-03-29
 */
public class JtPurchaseInboundOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 采购入库单id */
    private Long inboundOrderId;

    /** 供应商ID */
    private Long supplierId;

    /** 供应商 */
    @Excel(name = "供应商")
    private String supplierName;

    /** 仓库ID */
    private Long warehouseId;

    /** 仓库ID */
    @Excel(name = "仓库")
    private String warehouseName;

    /** 采购订单ID */
    @Excel(name = "采购订单ID")
    private Long purchaseOrderId;

    /** 入库单号 */
    @Excel(name = "入库单号")
    private String inboundOrderNo;

    /** 采购订单ID */
    @Excel(name = "采购订单号")
    private String purchaseOrderNo;

    /** 单据日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "单据日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date documentDate;

    /** 入库总数量 */
    @Excel(name = "入库总数量")
    private Long totalQty;

    /** 入库总金额 */
    @Excel(name = "入库总金额")
    private BigDecimal totalAmount;

    /** 入库状态 0待入库  1已入库 2已取消 */
    @Excel(name = "入库状态", dictType = "jt_inbound_status")
    private Integer status;

    /** 入库类型 1无采购入库  2采购入库 */
    @Excel(name = "入库类型", dictType = "jt_inbound_type")
    private Integer inboundType;

    /** 采购入库单明细信息 */
    private List<JtPurchaseInboundOrderItem> jtPurchaseInboundOrderItemList;

    public void setInboundOrderId(Long inboundOrderId) 
    {
        this.inboundOrderId = inboundOrderId;
    }

    public Long getInboundOrderId() 
    {
        return inboundOrderId;
    }

    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }

    public void setWarehouseId(Long warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId() 
    {
        return warehouseId;
    }

    public void setPurchaseOrderId(Long purchaseOrderId) 
    {
        this.purchaseOrderId = purchaseOrderId;
    }

    public Long getPurchaseOrderId() 
    {
        return purchaseOrderId;
    }

    public String getInboundOrderNo() {
        return inboundOrderNo;
    }

    public void setInboundOrderNo(String inboundOrderNo) {
        this.inboundOrderNo = inboundOrderNo;
    }

    public String getPurchaseOrderNo() {
        return purchaseOrderNo;
    }

    public void setPurchaseOrderNo(String purchaseOrderNo) {
        this.purchaseOrderNo = purchaseOrderNo;
    }

    public void setDocumentDate(Date documentDate)
    {
        this.documentDate = documentDate;
    }

    public Date getDocumentDate() 
    {
        return documentDate;
    }

    public void setTotalQty(Long totalQty) 
    {
        this.totalQty = totalQty;
    }

    public Long getTotalQty() 
    {
        return totalQty;
    }

    public void setTotalAmount(BigDecimal totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount() 
    {
        return totalAmount;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setInboundType(Integer inboundType) 
    {
        this.inboundType = inboundType;
    }

    public Integer getInboundType() 
    {
        return inboundType;
    }

    public List<JtPurchaseInboundOrderItem> getJtPurchaseInboundOrderItemList()
    {
        return jtPurchaseInboundOrderItemList;
    }

    public void setJtPurchaseInboundOrderItemList(List<JtPurchaseInboundOrderItem> jtPurchaseInboundOrderItemList)
    {
        this.jtPurchaseInboundOrderItemList = jtPurchaseInboundOrderItemList;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("inboundOrderId", getInboundOrderId())
            .append("supplierId", getSupplierId())
            .append("warehouseId", getWarehouseId())
            .append("purchaseOrderId", getPurchaseOrderId())
            .append("documentDate", getDocumentDate())
            .append("totalQty", getTotalQty())
            .append("totalAmount", getTotalAmount())
            .append("status", getStatus())
            .append("inboundType", getInboundType())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("jtPurchaseInboundOrderItemList", getJtPurchaseInboundOrderItemList())
            .toString();
    }
}
